import request from '@/utils/request'

// 查询传承人申请管理列表
export function listInheritorApplication(query) {
  return request({
    url: '/management/InheritorApplication/list',
    method: 'get',
    params: query
  })
}

// 查询传承人申请管理详细
export function getInheritorApplication(id) {
  return request({
    url: '/management/InheritorApplication/' + id,
    method: 'get'
  })
}

// 新增传承人申请管理
export function addInheritorApplication(data) {
  return request({
    url: '/management/InheritorApplication',
    method: 'post',
    data: data
  })
}

// 修改传承人申请管理
export function updateInheritorApplication(data) {
  return request({
    url: '/management/InheritorApplication',
    method: 'put',
    data: data
  })
}

// 审核传承人申请
export function auditInheritorApplication(data) {
  return request({
    url: '/management/InheritorApplication/audit',
    method: 'post',
    data: data
  })
}

// 删除传承人申请管理
export function delInheritorApplication(id) {
  return request({
    url: '/management/InheritorApplication/' + id,
    method: 'delete'
  })
}
